#include "DataObject.h"
#include "DataDefines.h"

Vertex3D::Vertex3D()
{
	// do nothing in constructor.. improve program performance..
}

Vertex3D::Vertex3D(const mlVector3D& pos)
{
	position = pos;
}

Triangle::Triangle()
{

}

_3DObject::_3DObject():triangleList(NULL),
	                   cnt(0)
{

}

_3DObject::~_3DObject()
{
	if(triangleList)
	{
		delete[] triangleList;
		triangleList = NULL;
		cnt = 0;
	}
}

RenderListTriangle::RenderListTriangle():trianleList(NULL),
	                                     cnt(0)
{

}

RenderListTriangle::~RenderListTriangle()
{
	if (trianleList)
	{
		delete[] trianleList;
		trianleList = NULL;
		cnt = 0;
	}
}

RenderListObject::RenderListObject():objectList(NULL),
	                                 cnt(0)
{
	
}

RenderListObject::~RenderListObject()
{
	if (objectList)
	{
		delete[] objectList;
		objectList = NULL;
		cnt = 0;
	}
}